package pack0618;

public class ZueYe1 {
   /*public static void main(String[] args){
        int s=1;
        for(s=1;s<1000;s++)
        if(s%3==2&&s%4==3&&s%5==4&&s%7==0){
            break;

            }
        System.out.println(s);
    }
        */
   public static void main(String[] args){
       int i=7;
       for (i=7;;i=i+7)
       if(i%3==2&&i%4==3&&i%5==4){
           break;
       }
       System.out.println(i);
   }

}
